<?php
  class Model_order extends CI_Model{
	  protected $_table = "tbl_orders";
	  protected $_tours = "tbl_tours";
	  public function __construct(){
		  parent::__construct();
		  $this->load->database();
	  }
	  public function gettours($id){
		  $this->db->where("tours_id",$id);
		  return $this->db->get($this->_tours)->row_array();
	  }
	  public function add($data){
		  $this->db->insert($this->_table,$data);
	  }
  }